#include "animal.h"
#include <stdio.h>

Animal::Animal(int w): _weight(w) //initialization liest, calls to copy constructor
{
    this->_weight = w; // copies w parameter, call _weight default constructor, calls operator =
    
    
    
    printf("Animal::Animal()\n");
}

Animal::Animal(Date& d) : _bornDate(d)
{
    printf("Animal::Animal(Date)\n");
     this->_weight = 55;
    
//    sprintf(buffer, sizeOfBuffer, "format %d%s%x%f", int, char*, int, float)
//    /fprint(file, format,params)
}

Animal::~Animal()
{
    printf("Animal::~Animal()\n");
}
int Animal::getWeight()
{
    return this->_weight;
}
